import React from 'react';
import { Route } from 'react-router';

import stores from './stores/index';
import './style/index';
import KnowledgeEdit from './components/knowledge/KnowledgeEdit.js';
import KnowledgeList from './components/knowledge/KnowledgeList.js';
import KnowledgeMapList from './components/knowledgeMap/KnowledgeMapList.js';

const DevelopRoute = (
  <Route path='knowledge'>
        <Route name='KnowledgeEdit' breadcrumbName='知识点编辑' path='knowledgeEdit' component={KnowledgeEdit} />
        <Route name='KnowledgeList' breadcrumbName='知识点维护' path='knowledgeList' component={KnowledgeList} />
        <Route name='KnowledgeMapList' breadcrumbName='知识地图维护' path='KnowledgeMapList' component={KnowledgeMapList} />
  </Route>
);

const KnowledgeEditCom = (props) => {
  return <KnowledgeEdit {...props} key='KnowledgeEdit' />
}

module.exports = {
  Route: DevelopRoute,
  store: stores,
  KnowledgeEditCom: KnowledgeEditCom,
};
